<?php
/**
 * @notes:
 * @return
 * @author: admin
 * @date: 2024/9/10
 */


namespace addons\shopro\controller\lucky;

use addons\shopro\controller\Common;
use addons\shopro\service\lucky\OrderService;

class Order extends Common
{


    protected $noNeedLogin = [];
    protected $noNeedRight = ['*'];

    /***
     * 获取预购列表
     * @notes:
     * @author: 小谢
     * @date: 2024/9/10 1:07
     */
    public function getlist()
    {
        $params = $this->request->only(['type','lucky_id']);
        $this->svalidate($params);
        $user = auth_user();


        return $this->success('获取成功',(new OrderService())->getList($params,$user));

    }

}